<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="lib/html5.js"></script>
    <script type="text/javascript" src="lib/respond.min.js"></script>
    <script type="text/javascript" src="lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="__PUBLIC__/css/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/H-ui.admin.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css"/>
    <link href="Tpl/Service/common/order/orderInfo.css" rel="stylesheet" type="text/css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>客服中心</title>
    <style>
        .form .row{margin-top: 6px;}
        .pic_cont img{width: 600px;height: 600px;display: block;float: left;background: #ccc;margin-top: 10px}
    </style>
</head>
<body>
<div class="container">
    <div class="col-7 lingVer mt-10 mb-10">
        <div class="row pt-10 pb-20">
        <!-- {:myDump($data)} -->
            <form action="" method="post" class="form form-horizontal sugForm" id="form-customer-add" autocomplete="off">
            <input type="hidden" name="id" value="{$data.id}"/>
            <input type="hidden" name="" id="pid" value="{$data.pid}"/>
            <input type="hidden" name="" id="cid" value="{$data.entry_id}"/>
            <div class="row cl">
                    <label class="form-label col-3">订单编号：</label>
                    <div class="formControls col-8 input_h">
                        <input type="text" class="form-control input-text" disabled="disabled" value="{$data.serialno}">
                                
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">工单状态：</label>
                    <div class="formControls col-8 input_h">
                    <input type="text" class="form-control input-text" disabled="disabled" value="{$data.step_title}">
                                
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                        <label class="form-label col-3">工单大类：</label>
                        <div class="formControls col-8">
                            <span class="select-box input_h">
                              <select class="select parent" size="1" name="parent" id="Scate">
                              </select>
                            </span>
                        </div>
                        <div class="col-1"> </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3">工单细类：</label>
                        <div class="formControls col-8">
                            <span class="select-box input_h">
                              <select class="select child" size="1" name="type_id" id="">
                              </select>
                            </span>
                        </div>
                        <div class="col-1"> </div>
                    </div>
                <div class="row cl">
                    <label class="form-label col-3">报修人：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" disabled="disabled" value="{$data.customer.realname}">
                               
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">电话号码：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" disabled="disabled" value="{$data.customer.tel}">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">地址：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" value="{$data.address}" name="address">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">创建时间：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" disabled="disabled" value="{$data['createtime']|date='Y-m-d H:i:s',###}">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">抢单开始时间：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" disabled="disabled" value="{$data.rob_start_date}">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">维修工：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" disabled="disabled" value="{$data.handler_name}">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">应收金额：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" value="{$data.price}" name="price">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">实收金额：</label>
                    <div class="formControls col-8">
                    <input type="text" class="form-control input-text" value="{$data.actual_price}" name="actual_price">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl">
                    <label class="form-label col-3">事件说明：</label>
                    <div class="formControls col-8">
                    <textarea class="form-control input-text eventInfo" name="info">{$data.info}</textarea> 
                    </div>
                    <div class="col-1"></div>
                </div>
                

                <div class="row cl">
                    <label class="form-label col-3">评价：</label>
                    <div class="formControls col-8">
                    <input type="text" disabled="disabled" class="form-control input-text" value="{$data.assess}">
                    </div>
                    <div class="col-1"></div>
                </div>
                <div class="row cl mb-10 ">
                        <div class="col-9 col-offset-3 margin_b">
                            <!-- <input class="btn btn-primary radius" type="submit" value="提交"> -->
                            <button type="submit"  class="btn btn-primary radius input_h" id="formSub">提交</button>
                        </div>
                    </div>
            </form>
        </div>
    </div>
   <div class="col-5 mt-10 massage_w">
                <p class="pl-20">流转记录:</p>
                <div class="wordRecord">
                    <volist name="data['list']" id="v" key="k" empty="暂无流转记录">
                        <p class="">{$v.time}；{$v.title} {$v.data}</p>
                    </volist>
                    
                </div>
                
                
  </div>
  <div class="col-12 mt-10 pic_cont">
                    <label class="form-label col-2" style="padding-left: 32px;">现场图片：</label>
                    <div class="formControls col-10">
                        <volist name="data['pic']" id="v">
                        <img src="{$v.url}" alt="">
                        </volist>
                    </div>
                </div>

    
    
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/getUrl.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/Validform/5.3.2/Validform.min.js"></script>
<script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
<script type="text/javascript" src="Tpl/Service/common/order/liandong2.js"></script>
<script type="text/javascript">
    $(function(){
            $("#form-customer-add").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            beforeSubmit:function(curform){
            
                curform.ajaxSubmit({
                type:'POST',
                url:'/index.php?m=Service&c=WxOrder&a=edit',
                success:function(data){
                  console.log(status);
                  if(data.status==true){
                      layer.msg('修改成功');
                      var index = parent.layer.getFrameIndex(window.name);
                      setTimeout(function(){
                           parent.layer.close(index);
                      },1000);
                      parent.location.reload();
                      // parent.location.href='/index.php?m=Home&c=Card&a=cardLst';

                  }else{
                    if(data.info)
                        var msginfo = data.info;
                    else
                        var msginfo = data.msg;
                    layer.msg(msginfo);
                  }
                  }
                });
             return false; 
            }
          });
        });

</script>
</body>
</html>